getExternalTypedJson

suspend fun <T> getExternalTypedJson(url: String, additionalHeaders: Map<String, String> = emptyMap()): JSTypedHttpResponse<T>

GET a JSON response, casting it to the requested type in JS. T should be an external interface, no type checking is done.

404 will be mapped to null.

Sources

js source
Link copied to clipboard